import request from '@/utils/request'

export function listRole(params) {
  return request({
    url: '/role/listRole',
    method: 'get',
    params: params
  })
}

export function editRole(params) {
  return request({
    url: '/role/editRole',
    method: 'post',
    params: params
  })
}

export function deleteRole(params) {
  return request({
    url: '/role/deleteRole',
    method: 'delete',
    params: params
  })
}

export function getTree(params) {
  return request({
    url: '/role/getTree',
    method: 'get',
    params: params
  })
}

export function authorize(params) {
  return request({
    url: '/role/authorize',
    method: 'post',
    params: params
  })
}
